﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using TRPOP.Common;

namespace TRPOP.CMS.Model
{
    [Serializable]
    public class AdvscontentInfo
    {
        #region 私有变量
        private int m_intAdID = 0;
        private int m_intCustomersID = 0;
        private string m_strName = "";
        private int m_intShowModel = 0;
        private DateTime m_datAddTime = StringExtension.NullDateTime;
        private int m_intAddUserId = 0;
        private DateTime m_datUpdateTime = StringExtension.NullDateTime;
        private int m_intUpdateUserId = 0;
        private bool m_blnIsValid = false;
        private DateTime m_datMaturityTime = StringExtension.NullDateTime;
        private int m_intHits = 0;
        private string m_strDetial = "";
        private string m_strPageName = "";
        private string m_strRedirect = "";
        #endregion

        #region 成员函数

        /// <summary>
        ///  
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int AdID
        {
            get
            {
                return m_intAdID;
            }
            set
            {
                m_intAdID = value;
            }
        }

        /// <summary>
        ///  客户ID
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int CustomersID
        {
            get
            {
                return m_intCustomersID;
            }
            set
            {
                m_intCustomersID = value;
            }
        }

        /// <summary>
        ///  KeyWord,需要唯一
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Name
        {
            get
            {
                return m_strName;
            }
            set
            {
                m_strName = value;
            }
        }

        /// <summary>
        ///  模式:动态和静态(需要生成js文件)
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int ShowModel
        {
            get
            {
                return m_intShowModel;
            }
            set
            {
                m_intShowModel = value;
            }
        }

        /// <summary>
        ///  添加时间
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public DateTime AddTime
        {
            get
            {
                return m_datAddTime;
            }
            set
            {
                m_datAddTime = value;
            }
        }

        /// <summary>
        ///  添加者id
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int AddUserId
        {
            get
            {
                return m_intAddUserId;
            }
            set
            {
                m_intAddUserId = value;
            }
        }

        /// <summary>
        ///  最后修改时间
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public DateTime UpdateTime
        {
            get
            {
                return m_datUpdateTime;
            }
            set
            {
                m_datUpdateTime = value;
            }
        }

        /// <summary>
        ///  最后修改者id
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int UpdateUserId
        {
            get
            {
                return m_intUpdateUserId;
            }
            set
            {
                m_intUpdateUserId = value;
            }
        }

        /// <summary>
        ///  是否有效,当无效时广告将不显示
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public bool IsValid
        {
            get
            {
                return m_blnIsValid;
            }
            set
            {
                m_blnIsValid = value;
            }
        }

        /// <summary>
        ///  到期时间
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public DateTime MaturityTime
        {
            get
            {
                return m_datMaturityTime;
            }
            set
            {
                m_datMaturityTime = value;
            }
        }

        /// <summary>
        ///  点击次数
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int Hits
        {
            get
            {
                return m_intHits;
            }
            set
            {
                m_intHits = value;
            }
        }

        /// <summary>
        ///  广告内容
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Detial
        {
            get
            {
                return m_strDetial;
            }
            set
            {
                m_strDetial = value;
            }
        }

        /// <summary>
        ///  生成文件名
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string PageName
        {
            get
            {
                return m_strPageName;
            }
            set
            {
                m_strPageName = value;
            }
        }

        /// <summary>
        ///  跳转地址
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Redirect
        {
            get
            {
                return m_strRedirect;
            }
            set
            {
                m_strRedirect = value;
            }
        }

        #endregion

    }
}